<%@ page import="question.ClassifyInfo" %>
<%@ page import="com.opensymphony.xwork2.util.ValueStack" %>
<%@ page import="java.util.List" %>
<%@ page import="question.QuestionVar" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
function InitShowTreeInfo(tree)
{
  tree.nodes["0_a"] = "text:题库列表;"
<%
  ValueStack vs = (ValueStack) request.getAttribute("struts.valueStack");
  List<ClassifyInfo> clist = (List<ClassifyInfo>) vs.findValue("clist");

  for(ClassifyInfo info : clist){
    if(info.getCtype() == QuestionVar.CLASSIFY_TYPE_YD) continue;
    boolean isDT = info.getCtype() == QuestionVar.CLASSIFY_TYPE_DT;
  %>
    tree.nodes["<%=info.getParentID() == 0 ? "a" : String.valueOf(info.getParentID())%>_<%=info.getCid()%>"] = "text:<%=info.getCname()%>;<%if(isDT){%>url:queryQuestion.action?cid=<%=info.getCid()%><%}%>;nodeid:<%=info.getCid()%>;parentid:<%=info.getParentID() == 0 ? "a" : String.valueOf(info.getParentID())%>"
  <%
  }
%>
}